<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {
    $router->get('/', 'UserController@index');
    // 系统管理
    $router->resource('config', 'ConfigController');
    // 村民管理
    $router->resource('users', 'UserController');
    $router->resource('family', 'FamilyController');
    // 通告
    $router->resource('circular', 'CircularController');
});
